跳到主要内容

描边端点(StrokeCap)

定义开放描边段末端形状:

  • butt:方形,不超出端点
  • round:半圆端点
  • square:方形,超出端点
self.paint = Paint.with({
color = Color.rgb(255, 100, 50),
cap = 'round',
style = 'stroke',
})